package com.xiguaji.tiktok.task.user;


import com.xiguaji.boot.eventbus.EventBusTemplate;
import com.xiguaji.tiktok.task.core.ScheduleTemplate;
import com.xiguaji.tiktok.task.ranking.event.FetchBloggerRankingEventListener;
import com.xiguaji.tiktok.task.ranking.event.FetchBloggerRankingFollowerEventListener;
import com.xiguaji.tiktok.task.ranking.event.FetchEnterpriseRankingEventListener;
import com.xiguaji.tiktok.task.ranking.event.FetchRegionRankingEventListener;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.val;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserAdsStatisticsTask {

    @Autowired
    EventBusTemplate eventBusTemplate;

    @Autowired
    ScheduleTemplate scheduleTemplate;


    @Autowired
    UserAdsStatisticsService userAdStatisticsService;

    @XxlJob("userAdStatistics")
    public ReturnT<String> userAdStatistics(String param){
        userAdStatisticsService.userAdsSt();
        return ReturnT.SUCCESS;
    }

    @XxlJob("menuVisitRecordSt")
    public ReturnT<String> menuVisitRecordSt(String param){
        userAdStatisticsService.menuVisitRecordSt();
        return ReturnT.SUCCESS;
    }
}
